package models

import "gorm.io/gorm"

type Novel struct {
	gorm.Model
	Title  string `gorm:"type:varchar(20);not null" json:"title"`
	Cate   string `gorm:"type:enum('言情','科幻')" json:"cate"`
	Author string `gorm:"type:varchar(20);not null" json:"author"`
	Img    string `gorm:"type:text" json:"img"`
}
